﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using Communication.Channel;
using Growatt.DuiHelpers;
using Growatt.OSC.Util;
using Growatt.WaveData;
using Growatt.WaveData.DataSetResolve;
using Growatt.WaveData.VirtualOscilloscope;
using LEDVANCE.Oscilloscope.VirtualOscilloscope.DataGridViewHelper;
using Oscilloscope.Adjust;
using Oscilloscope.Channel;
using Oscilloscope.ChannelBuffer;
using Oscilloscope.Screen;
using Sunny.UI;
using Sunny.UI.Win32;
using static System.Windows.Forms.AxHost;

namespace Vosc.VirtualOscilloscope
{
    // Token: 0x02000006 RID: 6
    public class OscilloscopeControl : UserControl
    {
        public static Action<string> ShowData = null;
        private TableLayoutPanel tableLayoutPanel3;
        private GroupBox groupBox4;
        private GroupBox groupBox5;
        private FlowLayoutPanel flowLayoutPanel_ParamterAddSetting;
        private GroupBox groupBox_parameterSetting;
        private GroupBox groupBox1;
        private ComboBox cbxTimeType;
        private TableLayoutPanel tableLayoutPanel2;
        private Label label5;
        private Label label4;
        private Label label3;
        private TableLayoutPanel tableLayoutPanel1;
        private Label label6;
        private Panel panel3;

        // Token: 0x1700000A RID: 10
        // (get) Token: 0x06000039 RID: 57 RVA: 0x00005720 File Offset: 0x00003920
        public int TimeLengthPerCellGrade
        {
            get { return this.timeLengthPerCellGrade; }
        }
        public DspDataLoadForm dspDataLoadForm = null;

        // Token: 0x0600003A RID: 58 RVA: 0x00005728 File Offset: 0x00003928
        public OscilloscopeControl()
        {
            OscilloscopeControl.CHANNEL_COUNT = Program.CountChannel;
            OscilloscopeScreen.CHANNEL_COUNT = Program.CountChannel;
            this.InitializeComponent();

            this.Load += OscilloscopeControl_Load;
        }

        private Sunny.UI.UISplitContainer splitContainer1;
        private Panel panel_Comsetting;
        List<RadioButton> radioButtonCollection = null;
        public static List<UC_ParameterSetting> userControl1s = null;
        public static List<string> listAddress = new List<string>(); //全局地址
        private UC_ParameterWriting userControlWriter;
        List<RadioButton> radioButtons = null;

        //public static List<ModelSaveString> modelSaveStrings = null;
        public static ModelSaveChanelCount modelSaveChanelCount = new ModelSaveChanelCount();
        public static ModelSaveChaneltempLoad ModelSaveChanelLoadsFiles = new ModelSaveChaneltempLoad();
        public static AppSettingsCustom ModelAppSettingsCustom = new AppSettingsCustom();

        //public static BindingList<ModelSaveString> BindingListmodelSaveStrings = null;
        Sunny.UI.UISplitContainer uISplitContainer = new Sunny.UI.UISplitContainer() { Dock = DockStyle.Fill };

        public void CreateUIControl()
        {
            uISplitContainer.Orientation = Orientation.Horizontal;
            uISplitContainer.Panel1.Controls.Add(panel_Comsetting);
            uISplitContainer.Panel2.Controls.Add(tableLayoutPanel2);
            //uISplitContainer.BarColor = Color.Transparent;
            this.splitContainer1.Panel2.Controls.Add(uISplitContainer);
            //splitContainer3.Panel1MinSize = 45;//修改行宽
            //splitContainer3.SplitterDistance = 45;
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            uISplitContainer.SplitterMoved += UISplitContainer_SplitterMoved;
            splitContainer1.SplitterMoved += SplitContainer1_SplitterMoved;
            panel_Comsetting.Dock = DockStyle.Fill;
            int count = 6;
            groupBox_parameterSetting.Dock = DockStyle.Fill;
            groupBox_parameterSetting.Controls.Add(userControlWriter);
            for (int i = 0; i < Program.CountChannel - 6; i++)
            {
                count++;
                var CbxChSelector01 = new System.Windows.Forms.CheckBox();
                CbxChSelector01.AutoSize = true;
                CbxChSelector01.Location = new System.Drawing.Point(68, 71);
                CbxChSelector01.Size = new System.Drawing.Size(42, 16);
                CbxChSelector01.TabIndex = 12;
                CbxChSelector01.Tag = $"{count}";
                CbxChSelector01.Text = $"CH{count}";
                CbxChSelector01.UseVisualStyleBackColor = true;
                CbxChSelector01.Name = $"CbxChSelector0{count}";
                CbxChSelector01.CheckedChanged += this.CbxChSelector_CheckedChanged;
                CheckBoxCollection.Add(CbxChSelector01);
                var radioButto = new System.Windows.Forms.RadioButton();
                radioButto.AutoSize = true;
                radioButto.Location = new System.Drawing.Point(12, 20);
                radioButto.Size = new System.Drawing.Size(41, 16);
                radioButto.TabIndex = 13;
                radioButto.TabStop = true;
                radioButto.Tag = $"{count}";
                radioButto.Text = $"CH{count}";
                radioButto.UseVisualStyleBackColor = true;
                radioButto.Click += this.RbnVerPosAdjSelector_Click;
                radioButto.Name = $"RbnVerPosAdjSelector0{count}";
                radioButtonCollection.Add(radioButto);
            }
            OscilloscopeScreen.ShowDatasChannel += (DataChanle, color) =>
            {
                try
                {
                    if (DataChanle.Count == 0)
                    {
                        label3.Text = "";
                        label4.Text = "";
                        label5.Text = "";
                        label6.Text = "";
                        return;
                    }

                    Dictionary<string, Color> colorDic = new Dictionary<string, Color>();
                    foreach (var item in color)
                    {
                        colorDic.Add(item.Item1, item.Item2);
                    }
                    foreach (var item in DataChanle)
                    {
                        if (item.Contains("CH1"))
                        {
                            label3.Text = item;
                            if (colorDic.ContainsKey("CH1"))
                            {
                                label3.ForeColor = colorDic["CH1"];
                            }
                        }
                        else { }
                        if (item.Contains("CH2"))
                        {
                            label4.Text = item;
                            if (colorDic.ContainsKey("CH2"))
                            {
                                label4.ForeColor = colorDic["CH2"];
                            }
                        }
                        else { }
                        if (item.Contains("CH3"))
                        {
                            label5.Text = item;
                            if (colorDic.ContainsKey("CH3"))
                            {
                                label5.ForeColor = colorDic["CH3"];
                            }
                        }
                        else { }
                        if (item.Contains("CH4"))
                        {
                            label6.Text = item;
                            if (colorDic.ContainsKey("CH4"))
                            {
                                label6.ForeColor = colorDic["CH4"];
                            }
                        }
                        else { }
                    }
                }
                catch (Exception) { }
            };
        }

        private void SplitContainer1_SplitterMoved(object sender, SplitterEventArgs e)
        {
            // 保存分隔条的当前位置
            SplitContainer splitContainer = sender as SplitContainer;

            if (splitContainer != null)
            {
                // 获取分隔条的偏移量（Offset）或分布比例（Percentage）
                int splitPosition = splitContainer.SplitterDistance;

                OscilloscopeControl.ModelAppSettingsCustom.RightLeft = splitPosition.ToString();
                // 打印调试信息
                //Console.WriteLine($"左右分隔条移动到位置: {splitPosition}");
            }
        }

        private void UISplitContainer_SplitterMoved(object sender, SplitterEventArgs e)
        {
            // 保存分隔条的当前位置
            SplitContainer splitContainer = sender as SplitContainer;

            if (splitContainer != null)
            {
                // 获取分隔条的偏移量（Offset）或分布比例（Percentage）
                int splitPosition = splitContainer.SplitterDistance;

                OscilloscopeControl.ModelAppSettingsCustom.UpDown = splitPosition.ToString();
                // 打印调试信息
                //  Console.WriteLine($"分隔条移动到位置: {splitPosition}");
            }
        }

        public static string GetEnglishLetters(string input)
        {
            // 匹配所有连续英文字母（不包含数字和符号）
            MatchCollection matches = Regex.Matches(input, "[A-Za-z]+");
            return string.Join("", matches.Cast<Match>().Select(m => m.Value));
        }

        public static List<ChannelControl> listChnnel = new List<ChannelControl>();

        private void OscilloscopeControl_Load(object sender, EventArgs e)
        {
            try
            {
                dspDataLoadForm = new DspDataLoadForm() { Dock = DockStyle.Fill };
                dspDataLoadForm.ControlsAdd(tableLayoutPanel3);
                panel_Comsetting.Controls.Add(dspDataLoadForm);
                this.timeLengthPerCellGrade = 0;
                for (int i = 0; i < this.channelSelectedMap.Length; i++)
                {
                    this.channelSelectedMap[i] = true;
                }
                for (int j = 1; j <= OscilloscopeControl.CHANNEL_COUNT; j++)
                {
                    this.managedChannelbuffer.Add(j, ChannelBufferFactory.EmptyChannelBuffer());
                }
                this.verPosAdjustChannelSN = 1;
                userControlWriter.Dock = DockStyle.Fill;
                groupBox_parameterSetting.Controls.Add(userControlWriter);
                radioButtons = new List<RadioButton>();
                CheckBoxCollection = new List<CheckBox>();
                radioButtonCollection = new List<RadioButton>();
                radioButtonCollection = new List<RadioButton>()
                {
                    RbnVerPosAdjSelector01,
                    RbnVerPosAdjSelector02,
                    RbnVerPosAdjSelector03,
                    RbnVerPosAdjSelector04,
                    RbnVerPosAdjSelector05,
                    RbnVerPosAdjSelector06,
                };
                CheckBoxCollection = new List<CheckBox> { CbxChSelector01, CbxChSelector02, CbxChSelector03, CbxChSelector04, CbxChSelector05, CbxChSelector06 };
                CreateUIControl();

                userControl1s = new List<UC_ParameterSetting>();
                for (int i = 0; i < Program.CountChannel; i++) // 增加多个通道控件
                {
                    if (i < OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString.Count) // 检查是否超出范围
                    {
                        UC_ParameterSetting uc = new UC_ParameterSetting(i + 1, OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString[i]);
                        MainForm.ChangeProperty += uc.ChangetextBox1;
                        userControl1s.Add(uc);
                    }
                    else
                    {
                        // 如果超出范围，可以选择使用默认值或者跳过
                        var data_ModelSaveString = new ModelSaveString();
                        OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString.Add(data_ModelSaveString);
                        UC_ParameterSetting uc = new UC_ParameterSetting(i + 1, data_ModelSaveString); // 或者使用一个默认字符串
                        MainForm.ChangeProperty += uc.ChangetextBox1;
                        userControl1s.Add(uc);
                    }
                }

                this.cbxTimeType.Items.AddRange(Enum.GetNames(typeof(OscilloscopeControl.ENUM_002)));

                this.btnTimeLocSet.Click += this.btnTimeLocSet_Click;

                if (DatagirdViewHelper.modelList?.Count > 0)
                {
                    var index = 0;
                    if (OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString?.Count > 0)
                    {
                        userControl1s.ForEach(u =>
                        {
                            if (index < OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString.Count && OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString[index] != null)
                            {
                                u.InitialData(OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString[index]);
                            }
                            index++;
                        });
                    }
                    else
                    {
                        userControl1s.ForEach(u =>
                        {
                            if (index < DatagirdViewHelper.modelList.Count)
                            {
                                u.InitialData(DatagirdViewHelper.modelList[0]);
                            }
                            index++;
                        });
                    }
                }

                List<ConfigChannelControlModel> ConfigChanelControlSyslist = null;
                if (File.Exists(Path.Combine($"{Environment.CurrentDirectory}\\Parser", $"ConfigChanelControlSys.ini"))) //將保存內容顯示在界面中
                {
                    string file = File.ReadAllText(Path.Combine($"{Environment.CurrentDirectory}\\Parser", $"ConfigChanelControlSys.ini"));
                    ////反序列化
                    ConfigChanelControlSyslist = DuiJsonHelper.JsonToObject<List<ConfigChannelControlModel>>(file);
                }
                for (int i = 0; i < OscilloscopeControl.CHANNEL_COUNT; i++)
                {
                    //此处变更颜色
                    ChannelControl value = null;
                    if (ConfigChanelControlSyslist?.Count > 0 && ConfigChanelControlSyslist.Count == CHANNEL_COUNT)
                        value = new ChannelControl(
                            ConfigChanelControlSyslist[i].ChannelSN,
                            ConfigChanelControlSyslist[i].LineColor,
                            ConfigChanelControlSyslist[i].LineWidth,
                            ConfigChanelControlSyslist[i].SignalName,
                            ConfigChanelControlSyslist[i].ValuePerCellGrade,
                            ConfigChanelControlSyslist[i].VerPos,
                            ConfigChanelControlSyslist[i].BitMask,
                            ConfigChanelControlSyslist[i].Offset,
                            ConfigChanelControlSyslist[i].VerPos
                        );
                    else
                        value = new ChannelControl(i + 1, Consts.COLOR_SEQUENCE[i], 2f, "通道" + (i + 1).ToString(), 0, 0.0, ushort.MaxValue, 0, 0);
                    OscilloscopeControl.listChnnel.Add(value);
                    var RbnVerPosAdjSelector = radioButtonCollection.FirstOrDefault(o => o.Name == $"RbnVerPosAdjSelector0{i + 1}");
                    var CbxChSelector = CheckBoxCollection.FirstOrDefault(o => o.Name == $"CbxChSelector0{i + 1}");
                    if (RbnVerPosAdjSelector == null || CbxChSelector == null) { }
                    if (RbnVerPosAdjSelector != null && CbxChSelector != null)
                    {
                        RadioButton radioButton = RbnVerPosAdjSelector as RadioButton;

                        radioButton.CheckedChanged += (s, e) =>
                        {
                            RadioButton radioButtonCurrent = s as RadioButton;
                            if (radioButton.Checked && radioButtons.Count > 0)
                            {
                                var ra = radioButtons.FirstOrDefault(o => o.Name == radioButtonCurrent.Name);
                                if (ra != null)
                                {
                                    for (global::System.Int32 j = 0; j < radioButtons.Count; j++)
                                    {
                                        var itemR = radioButtons[j];
                                        if (itemR.Name != ra.Name)
                                        {
                                            itemR.Checked = false;
                                        }
                                    }
                                }
                            }
                        };
                        radioButtons.Add(radioButton);
                        CheckBox checkBox = CbxChSelector as CheckBox;
                        if (i == 0)
                        {
                            radioButton.Checked = true;
                        }
                        checkBox.Checked = this.channelSelectedMap[i];
                        value.GetControl(checkBox);
                        value.GetControl(radioButton);
                    }
                }

                Enumerable
                    .Range(0, userControl1s.Count)
                    .ToList()
                    .ForEach(
                        (i) =>
                        {
                            var fo = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
                            var fo1 = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
                            GroupBox groupBox = new GroupBox()
                            {
                                Text = $"通道{i + 1}",
                                Width = 480,
                                Height = 110,
                                Font = fo,
                            };
                            if (OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString?.Count > 0)
                            {
                                if (i < OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString.Count && OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString[i] != null)
                                {
                                    groupBox.Text = $"通道{i + 1}" + ":   " + OscilloscopeControl.ModelSaveChanelLoadsFiles.ListModelSaveString[i].Name;
                                }
                            }
                            TableLayoutPanel tableLayoutPanel = new TableLayoutPanel() { Dock = DockStyle.Fill, Font = fo };
                            tableLayoutPanel.RowStyles.Add(new RowStyle(sizeType: SizeType.Absolute, 45));
                            tableLayoutPanel.RowStyles.Add(new RowStyle(sizeType: SizeType.Absolute, 50));

                            if (i < listChnnel.Count)
                            {
                                tableLayoutPanel.Controls.Add(listChnnel[i], 0, 0);
                                listChnnel[i].Font = fo1;
                                listChnnel[i].Dock = DockStyle.Fill;
                            }

                            if (i < userControl1s.Count)
                            {
                                tableLayoutPanel.Controls.Add(userControl1s[i], 0, 1);
                                userControl1s[i].Font = fo1;
                                userControl1s[i].Dock = DockStyle.Fill;
                                userControl1s[i].ShowParameter += (o) =>
                                {
                                    groupBox.Text = o;
                                };
                            }

                            groupBox.Controls.Add(tableLayoutPanel);
                            flowLayoutPanel_ParamterAddSetting.Controls.Add(groupBox);
                        }
                    );

                flowLayoutPanel_ParamterAddSetting.Controls.Add(new Panel() { Height = 500 });
                flowLayoutPanel_ParamterAddSetting.AutoScroll = true;
                Button button = new Button() { Text = "获取地址", Visible = false };
                userControlWriter.ActionShow += (o) =>
                {
                    ShowData.Invoke($"{o}");
                };
                Func<Task> action = async () =>
                {
                    listAddress.Clear();
                    ShowData.Invoke("查找地址中");

                    List<string> strings = new List<string>();

                    for (int qq = 0; qq < userControl1s.Count; qq++)
                    {
                        userControl1s[qq].Address = string.Empty; //清空地址
                        if (userControl1s[qq].GetListContent().Count > 0)
                        {
                            var data = userControl1s[qq].GetListContent()[0];
                            if (!string.IsNullOrEmpty(data))
                            {
                                strings.Add(data);
                            }
                        }
                    }

                    if (strings.Count == 0)
                    {
                        ShowData.Invoke("请输入变量名称");
                        return;
                    }
                    InitialData m = null;
                    await Task.Run(() =>
                    {
                        m = MainForm.GetFileSymbolModel.Invoke(false, MainForm.filePathGlobal, strings);
                    });
                    if (m.ListParamAdd.Count > 0)
                    {
                        var stAdd = new List<string>();
                        foreach (var item in m.ListParamAdd)
                        {
                            listAddress.Add(item);
                            stAdd.Add(item.Split(':')[1]);
                            Console.WriteLine(item);
                        }
                        ShowData?.Invoke($"当前通道地址:{String.Join(",", stAdd)}");
                        if (strings.Count != stAdd.Count)
                        {
                            ShowData.Invoke($"查找地址有误,请检查输入变量");
                        }
                    }
                };
                button.Click += (s, e) =>
                {
                    action.Invoke();
                };
                DspDataLoadForm.GetAddress += async () =>
                {
                    await action.Invoke();
                    return true;
                };
                //tableLayoutPanel3.Controls.Add(button);
                this.TbrTimeLengthPerCell.Maximum = TimePerCellAdjustGrade.Instance.GradeCount - 1;
                this.SetTimeLengPerCell(this.timeLengthPerCellGrade, false);
                this.TbrTimeLengthPerCell.Scroll += this.TbrTimeLengthPerCell_Scroll;
                this.CbxChSelector01.CheckedChanged += this.CbxChSelector_CheckedChanged;
                this.CbxChSelector02.CheckedChanged += this.CbxChSelector_CheckedChanged;
                this.CbxChSelector03.CheckedChanged += this.CbxChSelector_CheckedChanged;
                this.CbxChSelector04.CheckedChanged += this.CbxChSelector_CheckedChanged;
                this.CbxChSelector05.CheckedChanged += this.CbxChSelector_CheckedChanged;
                this.CbxChSelector06.CheckedChanged += this.CbxChSelector_CheckedChanged;
                this.RbnVerPosAdjSelector01.Click += this.RbnVerPosAdjSelector_Click;
                this.RbnVerPosAdjSelector02.Click += this.RbnVerPosAdjSelector_Click;
                this.RbnVerPosAdjSelector03.Click += this.RbnVerPosAdjSelector_Click;
                this.RbnVerPosAdjSelector04.Click += this.RbnVerPosAdjSelector_Click;
                this.RbnVerPosAdjSelector05.Click += this.RbnVerPosAdjSelector_Click;
                this.RbnVerPosAdjSelector06.Click += this.RbnVerPosAdjSelector_Click;
                this.CbxHorizontalMoveFreeze.CheckedChanged += this.CbxHorizontalMoveFreeze_CheckedChanged;
                this.CbxVerticalMoveFreeze.CheckedChanged += this.CbxVerticalMoveFreeze_CheckedChanged;
                this.cbxCursors.CheckedChanged += this.cbxCursors_CheckedChanged;
                this.cbxCursorX.SelectedIndexChanged += this.cbxCursorX_SelectedIndexChanged;
                this.cbxCursorY.SelectedIndexChanged += this.cbxCursorY_SelectedIndexChanged;
                foreach (object obj in listChnnel)
                {
                    Control control = (Control)obj;
                    ChannelControl channelControl = (ChannelControl)control;
                    channelControl.ChannelPropertyChanged += this.ChannelControl_ChannelPropertyChanged;
                }
                this.cbxCursorX.SelectedIndex = 0;
                this.cbxCursorY.SelectedIndex = 0;
                channelSelectedMap = new bool[OscilloscopeControl.CHANNEL_COUNT];
                this.InitializeOscilloscopeScreen();
                flowLayoutPanel_ParamterAddSetting.VerticalScroll.Visible = false;

                LblTimeLengthPerCell.Text = OscilloscopeControl.ModelAppSettingsCustom.TimeSetting;
                string text = OscilloscopeControl.ModelAppSettingsCustom.TimeSetting;
                for (global::System.Int32 i = 0; i < AdjustGrade.Dic.Values.Count; i++)
                {
                    if (AdjustGrade.Dic.Values.ToArray()[i].ToString().Equals(text))
                    {
                        TbrTimeLengthPerCell.Value = i;
                        this.SetTimeLengPerCell(TbrTimeLengthPerCell.Value, true);
                    }
                }
                LblTimeLengthPerCell.TextChanged += (o, _) =>
                {
                    if (!string.IsNullOrEmpty(LblTimeLengthPerCell.Text))
                    {
                        //Debug.WriteLine(LblTimeLengthPerCell.Text);
                        if (LblTimeLengthPerCell.Text.Contains("us") || LblTimeLengthPerCell.Text.Contains("ms") || LblTimeLengthPerCell.Text.Contains("s"))
                        {
                            OscilloscopeControl.ModelAppSettingsCustom.TimeSetting = LblTimeLengthPerCell.Text;
                        }
                    }
                };
                if (int.TryParse(OscilloscopeControl.ModelAppSettingsCustom.RightLeft, out int result))
                {
                    splitContainer1.SplitterDistance = result;
                }
                else
                {
                    splitContainer1.SplitterDistance = 672;
                }

                if (int.TryParse(OscilloscopeControl.ModelAppSettingsCustom.UpDown, out int result1))
                {
                    uISplitContainer.SplitterDistance = result1;
                }
                else
                {
                    uISplitContainer.SplitterDistance = 153;
                }
            }
            catch (Exception ex)
            {
                DuiHelperLog.WriteErrorLog(ex);
            }
        }

        public void ChangeTimeSetting()
        {
            string text = OscilloscopeControl.ModelAppSettingsCustom.TimeSetting;
            for (global::System.Int32 i = 0; i < AdjustGrade.Dic.Values.Count; i++)
            {
                if (AdjustGrade.Dic.Values.ToArray()[i].ToString().Equals(text))
                {
                    TbrTimeLengthPerCell.Value = i;
                    this.SetTimeLengPerCell(TbrTimeLengthPerCell.Value, true);
                }
            }
        }

        // Token: 0x0600003C RID: 60 RVA: 0x00005B3C File Offset: 0x00003D3C
        private void cbxCursorY_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.oscilloscopeScreen.SetCursorYMoveMode(this.getCursorMoveModeOfY());
        }

        // Token: 0x0600003D RID: 61 RVA: 0x00005B4F File Offset: 0x00003D4F
        private void cbxCursorX_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.oscilloscopeScreen.SetCursorXMoveMode(this.getCursorMoveModeOfX());
        }

        // Token: 0x0600003E RID: 62 RVA: 0x00005B62 File Offset: 0x00003D62
        private void cbxCursors_CheckedChanged(object sender, EventArgs e)
        {
            this.oscilloscopeScreen.SetCursorsFunction(this.cbxCursors.Checked);
        }

        // Token: 0x0600003F RID: 63 RVA: 0x00005B7A File Offset: 0x00003D7A
        private void CbxVerticalMoveFreeze_CheckedChanged(object sender, EventArgs e)
        {
            this.oscilloscopeScreen.SetVerticalMoveFreeze(this.CbxVerticalMoveFreeze.Checked);
        }

        // Token: 0x06000040 RID: 64 RVA: 0x00005B92 File Offset: 0x00003D92
        private void CbxHorizontalMoveFreeze_CheckedChanged(object sender, EventArgs e)
        {
            this.oscilloscopeScreen.SetHorizontalMoveFreeze(this.CbxHorizontalMoveFreeze.Checked);
        }

        // Token: 0x06000041 RID: 65 RVA: 0x00005BAC File Offset: 0x00003DAC
        private void InitializeOscilloscopeScreen()
        {
            //this.oscilloscopeScreen.SetTimePerCellGrade(this.timeLengthPerCellGrade);
            for (int i = 0; i < this.channelSelectedMap.Length; i++)
            {
                this.oscilloscopeScreen.EnableChannel(i + 1, this.channelSelectedMap[i]);
            }
            this.oscilloscopeScreen.SetverVerPosAdjustChannelSN(this.verPosAdjustChannelSN);
            foreach (object obj in listChnnel)
            {
                Control control = (Control)obj;
                ChannelControl channelControl = (ChannelControl)control;
                this.oscilloscopeScreen.SetChannelColor(channelControl.ChannelSN, channelControl.LineColor);
                this.oscilloscopeScreen.SetChannelLineWidth(channelControl.ChannelSN, channelControl.LineWidth);
                this.oscilloscopeScreen.SetChannelValuePerCellGrade(channelControl.ChannelSN, channelControl.ValuePerCellGrade);
                this.oscilloscopeScreen.SetChannelBaseLineValue(channelControl.ChannelSN, channelControl.VerPos);
                this.oscilloscopeScreen.SetChannelBitMask(channelControl.ChannelSN, channelControl.BitMask);
                this.oscilloscopeScreen.SetChannelOffset(channelControl.ChannelSN, channelControl.offset);
            }
            this.oscilloscopeScreen.SetHorizontalMoveFreeze(this.CbxHorizontalMoveFreeze.Checked);
            this.oscilloscopeScreen.SetVerticalMoveFreeze(this.CbxVerticalMoveFreeze.Checked);
            this.oscilloscopeScreen.SetCursorsFunction(this.cbxCursors.Checked);
            this.oscilloscopeScreen.SetCursorXMoveMode(this.getCursorMoveModeOfX());
            this.oscilloscopeScreen.SetCursorYMoveMode(this.getCursorMoveModeOfY());
            this.oscilloscopeScreen.ChannelPropertyChanged += this.oscilloscopeScreen_ChannelPropertyChanged;
            for (int i = 0; i < this.channelSelectedMap.Length; i++)
            {
                this.oscilloscopeScreen.EnableChannel(i + 1, true); //所有通道都可见
            }
        }

        // Token: 0x06000042 RID: 66 RVA: 0x00005D4C File Offset: 0x00003F4C
        private CursorMoveMode getCursorMoveModeOfX()
        {
            if (this.cbxCursorX.SelectedIndex == 0)
            {
                return CursorMoveMode.None;
            }
            if (this.cbxCursorX.SelectedIndex == 1)
            {
                return CursorMoveMode._1;
            }
            if (this.cbxCursorX.SelectedIndex == 2)
            {
                return CursorMoveMode._2;
            }
            return CursorMoveMode.Both;
        }

        // Token: 0x06000043 RID: 67 RVA: 0x00005D7E File Offset: 0x00003F7E
        private CursorMoveMode getCursorMoveModeOfY()
        {
            if (this.cbxCursorY.SelectedIndex == 0)
            {
                return CursorMoveMode.None;
            }
            if (this.cbxCursorY.SelectedIndex == 1)
            {
                return CursorMoveMode._1;
            }
            if (this.cbxCursorY.SelectedIndex == 2)
            {
                return CursorMoveMode._2;
            }
            return CursorMoveMode.Both;
        }

        // Token: 0x06000044 RID: 68 RVA: 0x00005DB0 File Offset: 0x00003FB0
        private void btnTimeLocSet_Click(object sender, EventArgs e)
        {
            double num;
            if (double.TryParse(this.tbxWindowCenterTime.Text, out num) && num >= 0.0)
            {
                OscilloscopeControl.ENUM_002 enum_ = (OscilloscopeControl.ENUM_002)Enum.Parse(typeof(OscilloscopeControl.ENUM_002), this.cbxTimeType.SelectedItem.ToString());
                if (enum_ == OscilloscopeControl.ENUM_002.us)
                {
                    num /= 1000000.0;
                }
                else if (enum_ == OscilloscopeControl.ENUM_002.ms)
                {
                    num /= 1000.0;
                }
                this.oscilloscopeScreen.SetWindowCenterTime(num);
                return;
            }
            MessageBox.Show("请输入一个有效的时间位置！", "错误", MessageBoxButtons.OK, MessageBoxIcon.Hand);
        }

        // Token: 0x06000045 RID: 69 RVA: 0x00005E43 File Offset: 0x00004043
        private void TbrTimeLengthPerCell_Scroll(object sender, EventArgs e)
        {
            this.SetTimeLengPerCell(((TrackBar)sender).Value, true);
        }

        // Token: 0x06000046 RID: 70 RVA: 0x00005E58 File Offset: 0x00004058
        private void SetTimeLengPerCell(int timeLengthPerCellGrade, bool isFromUI)
        {
            this.timeLengthPerCellGrade = timeLengthPerCellGrade;
            this.LblTimeLengthPerCell.Text = TimePerCellAdjustGrade.Instance.GetDisplayStrOfGrade(timeLengthPerCellGrade) + "s";
            if (!isFromUI)
            {
                this.TbrTimeLengthPerCell.Value = timeLengthPerCellGrade;
                return;
            }
            this.oscilloscopeScreen.SetTimePerCellGrade(timeLengthPerCellGrade);
        }

        // Token: 0x06000047 RID: 71 RVA: 0x00005EA8 File Offset: 0x000040A8
        private void CbxChSelector_CheckedChanged(object sender, EventArgs e)
        {
            this.channelSelectedMap[int.Parse(((CheckBox)sender).Tag.ToString()) - 1] = ((CheckBox)sender).Checked;
            this.oscilloscopeScreen.EnableChannel(int.Parse(((CheckBox)sender).Tag.ToString()), ((CheckBox)sender).Checked);
        }

        // Token: 0x06000048 RID: 72 RVA: 0x00005F09 File Offset: 0x00004109
        private void RbnVerPosAdjSelector_Click(object sender, EventArgs e)
        {
            this.verPosAdjustChannelSN = int.Parse(((RadioButton)sender).Tag.ToString());
            this.oscilloscopeScreen.SetverVerPosAdjustChannelSN(this.verPosAdjustChannelSN);
        }

        // Token: 0x06000049 RID: 73 RVA: 0x00005F38 File Offset: 0x00004138
        private void ChannelControl_ChannelPropertyChanged(int channelSN, ChannelPropertyChangedEventArgs e)
        {
            switch (e.ChangedProperty)
            {
                case ChannelProperty.ChannelLineColor:
                    this.oscilloscopeScreen.SetChannelColor(channelSN, (Color)e.NewValue);
                    return;
                case ChannelProperty.ChannelLineWidth:
                    this.oscilloscopeScreen.SetChannelLineWidth(channelSN, (float)e.NewValue);
                    return;
                case ChannelProperty.ChannelValuePerCell:
                    this.oscilloscopeScreen.SetChannelValuePerCellGrade(channelSN, (int)e.NewValue);
                    return;
                case ChannelProperty.ChannelVerPos:
                    break;
                case ChannelProperty.ChannelBitMask:
                    this.oscilloscopeScreen.SetChannelBitMask(channelSN, (ushort)e.NewValue);
                    break;

                case ChannelProperty.ChannelOfset:
                    this.oscilloscopeScreen.SetChannelOffset(channelSN, (double)e.NewValue);
                    break;
                default:
                    return;
            }
        }

        // Token: 0x0600004A RID: 74 RVA: 0x00005FC8 File Offset: 0x000041C8
        private void oscilloscopeScreen_ChannelPropertyChanged(int channelSN, ChannelPropertyChangedEventArgs e)
        {
            ChannelProperty changedProperty = e.ChangedProperty;
            if (changedProperty != ChannelProperty.ChannelVerPos)
            {
                return;
            }
            foreach (object obj in listChnnel)
            {
                Control control = (Control)obj;
                ChannelControl channelControl = (ChannelControl)control;
                if (channelControl.ChannelSN == channelSN)
                {
                    channelControl.VerPos = (double)e.NewValue;
                    break;
                }
            }
        }

        // Token: 0x0600004B RID: 75 RVA: 0x00006054 File Offset: 0x00004254
        public void SetChannelBuffer(Dictionary<int, IChannelBuffer> channellist)
        {
            if (channellist == null)
            {
                throw new ArgumentNullException();
            }
            foreach (int key in channellist.Keys)
            {
                if (this.managedChannelbuffer.ContainsKey(key))
                {
                    this.managedChannelbuffer[key].Dispose();
                    this.managedChannelbuffer[key] = channellist[key];
                }
            }
            foreach (int num in this.managedChannelbuffer.Keys)
            {
                this.oscilloscopeScreen.SetChannelBuffer(num, this.managedChannelbuffer[num]);
            }
        }

        // Token: 0x0600004C RID: 76 RVA: 0x00006134 File Offset: 0x00004334
        public void ClearChannelBuffer()
        {
            Dictionary<int, IChannelBuffer> dictionary = new Dictionary<int, IChannelBuffer>();
            for (int i = 1; i <= OscilloscopeControl.CHANNEL_COUNT; i++)
            {
                dictionary.Add(i, ChannelBufferFactory.EmptyChannelBuffer());
            }
            this.SetChannelBuffer(dictionary);
        }

        // Token: 0x0600004D RID: 77 RVA: 0x0000616A File Offset: 0x0000436A
        public void SetWindowCenterTime(double centerTime)
        {
            this.oscilloscopeScreen.SetWindowCenterTime(centerTime);
        }

        // Token: 0x0600004E RID: 78 RVA: 0x00006178 File Offset: 0x00004378
        public void StartRefresh()
        {
            this.oscilloscopeScreen.StartRefreshData();
        }

        // Token: 0x0600004F RID: 79 RVA: 0x00006185 File Offset: 0x00004385
        public void StopRefresh()
        {
            this.oscilloscopeScreen.StopRefreshData();
        }

        /// <summary>
        /// 添加点数(Sample)
        /// </summary>
        /// <param name="frameData"></param>
        public void AddSampleData(short?[] frameData)
        {
            this.oscilloscopeScreen.GetChannelBufferManager().AddChannelData(frameData);
        }

        // Token: 0x06000051 RID: 81 RVA: 0x000061A5 File Offset: 0x000043A5
        protected override void Dispose(bool disposing)
        {
            if (disposing && this.components != null)
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        List<CheckBox> CheckBoxCollection = null;

        // Token: 0x06000052 RID: 82 RVA: 0x000061C4 File Offset: 0x000043C4
        private void InitializeComponent()
        {
            this.LblTimeLengthPerCell = new System.Windows.Forms.Label();
            this.TbrTimeLengthPerCell = new System.Windows.Forms.TrackBar();
            this.CbxChSelector01 = new System.Windows.Forms.CheckBox();
            this.CbxChSelector02 = new System.Windows.Forms.CheckBox();
            this.CbxChSelector03 = new System.Windows.Forms.CheckBox();
            this.CbxChSelector04 = new System.Windows.Forms.CheckBox();
            this.CbxChSelector05 = new System.Windows.Forms.CheckBox();
            this.CbxChSelector06 = new System.Windows.Forms.CheckBox();
            this.RbnVerPosAdjSelector01 = new System.Windows.Forms.RadioButton();
            this.RbnVerPosAdjSelector02 = new System.Windows.Forms.RadioButton();
            this.RbnVerPosAdjSelector03 = new System.Windows.Forms.RadioButton();
            this.RbnVerPosAdjSelector04 = new System.Windows.Forms.RadioButton();
            this.RbnVerPosAdjSelector05 = new System.Windows.Forms.RadioButton();
            this.RbnVerPosAdjSelector06 = new System.Windows.Forms.RadioButton();
            this.panel1 = new System.Windows.Forms.Panel();
            this.btnTimeLocSet = new System.Windows.Forms.Button();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.label2 = new System.Windows.Forms.Label();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.cbxTimeType = new System.Windows.Forms.ComboBox();
            this.tbxWindowCenterTime = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.cbxCursorY = new System.Windows.Forms.ComboBox();
            this.cbxCursorX = new System.Windows.Forms.ComboBox();
            this.cbxCursors = new System.Windows.Forms.CheckBox();
            this.CbxVerticalMoveFreeze = new System.Windows.Forms.CheckBox();
            this.CbxHorizontalMoveFreeze = new System.Windows.Forms.CheckBox();
            this.splitContainer1 = new Sunny.UI.UISplitContainer();
            this.panel3 = new System.Windows.Forms.Panel();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.label6 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.oscilloscopeScreen = new Oscilloscope.Screen.OscilloscopeScreen();
            this.panel_Comsetting = new System.Windows.Forms.Panel();
            this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
            this.groupBox_parameterSetting = new System.Windows.Forms.GroupBox();
            this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
            this.groupBox5 = new System.Windows.Forms.GroupBox();
            this.flowLayoutPanel_ParamterAddSetting = new System.Windows.Forms.FlowLayoutPanel();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.userControlWriter = new Growatt.WaveData.VirtualOscilloscope.UC_ParameterWriting();
            ((System.ComponentModel.ISupportInitialize)(this.TbrTimeLengthPerCell)).BeginInit();
            this.groupBox2.SuspendLayout();
            this.groupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.panel3.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
            this.tableLayoutPanel2.SuspendLayout();
            this.groupBox_parameterSetting.SuspendLayout();
            this.tableLayoutPanel3.SuspendLayout();
            this.groupBox5.SuspendLayout();
            this.SuspendLayout();
            //
            // LblTimeLengthPerCell
            //
            this.LblTimeLengthPerCell.BackColor = System.Drawing.SystemColors.Control;
            this.LblTimeLengthPerCell.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.LblTimeLengthPerCell.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.LblTimeLengthPerCell.Location = new System.Drawing.Point(140, 24);
            this.LblTimeLengthPerCell.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.LblTimeLengthPerCell.Name = "LblTimeLengthPerCell";
            this.LblTimeLengthPerCell.Size = new System.Drawing.Size(58, 18);
            this.LblTimeLengthPerCell.TabIndex = 11;
            this.LblTimeLengthPerCell.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // TbrTimeLengthPerCell
            //
            this.TbrTimeLengthPerCell.Location = new System.Drawing.Point(8, 10);
            this.TbrTimeLengthPerCell.Margin = new System.Windows.Forms.Padding(4);
            this.TbrTimeLengthPerCell.Name = "TbrTimeLengthPerCell";
            this.TbrTimeLengthPerCell.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.TbrTimeLengthPerCell.Size = new System.Drawing.Size(133, 45);
            this.TbrTimeLengthPerCell.TabIndex = 9;
            this.TbrTimeLengthPerCell.TickStyle = System.Windows.Forms.TickStyle.Both;
            //
            // CbxChSelector01
            //
            this.CbxChSelector01.AutoSize = true;
            this.CbxChSelector01.Location = new System.Drawing.Point(12, 71);
            this.CbxChSelector01.Name = "CbxChSelector01";
            this.CbxChSelector01.Size = new System.Drawing.Size(42, 16);
            this.CbxChSelector01.TabIndex = 12;
            this.CbxChSelector01.Tag = "1";
            this.CbxChSelector01.Text = "CH1";
            this.CbxChSelector01.UseVisualStyleBackColor = true;
            //
            // CbxChSelector02
            //
            this.CbxChSelector02.AutoSize = true;
            this.CbxChSelector02.Location = new System.Drawing.Point(68, 71);
            this.CbxChSelector02.Name = "CbxChSelector02";
            this.CbxChSelector02.Size = new System.Drawing.Size(42, 16);
            this.CbxChSelector02.TabIndex = 12;
            this.CbxChSelector02.Tag = "2";
            this.CbxChSelector02.Text = "CH2";
            this.CbxChSelector02.UseVisualStyleBackColor = true;
            //
            // CbxChSelector03
            //
            this.CbxChSelector03.AutoSize = true;
            this.CbxChSelector03.Location = new System.Drawing.Point(124, 71);
            this.CbxChSelector03.Name = "CbxChSelector03";
            this.CbxChSelector03.Size = new System.Drawing.Size(42, 16);
            this.CbxChSelector03.TabIndex = 12;
            this.CbxChSelector03.Tag = "3";
            this.CbxChSelector03.Text = "CH3";
            this.CbxChSelector03.UseVisualStyleBackColor = true;
            //
            // CbxChSelector04
            //
            this.CbxChSelector04.AutoSize = true;
            this.CbxChSelector04.Location = new System.Drawing.Point(180, 71);
            this.CbxChSelector04.Name = "CbxChSelector04";
            this.CbxChSelector04.Size = new System.Drawing.Size(42, 16);
            this.CbxChSelector04.TabIndex = 12;
            this.CbxChSelector04.Tag = "4";
            this.CbxChSelector04.Text = "CH4";
            this.CbxChSelector04.UseVisualStyleBackColor = true;
            //
            // CbxChSelector05
            //
            this.CbxChSelector05.AutoSize = true;
            this.CbxChSelector05.Location = new System.Drawing.Point(12, 89);
            this.CbxChSelector05.Name = "CbxChSelector05";
            this.CbxChSelector05.Size = new System.Drawing.Size(42, 16);
            this.CbxChSelector05.TabIndex = 12;
            this.CbxChSelector05.Tag = "5";
            this.CbxChSelector05.Text = "CH5";
            this.CbxChSelector05.UseVisualStyleBackColor = true;
            //
            // CbxChSelector06
            //
            this.CbxChSelector06.AutoSize = true;
            this.CbxChSelector06.Location = new System.Drawing.Point(68, 89);
            this.CbxChSelector06.Name = "CbxChSelector06";
            this.CbxChSelector06.Size = new System.Drawing.Size(42, 16);
            this.CbxChSelector06.TabIndex = 12;
            this.CbxChSelector06.Tag = "6";
            this.CbxChSelector06.Text = "CH6";
            this.CbxChSelector06.UseVisualStyleBackColor = true;
            //
            // RbnVerPosAdjSelector01
            //
            this.RbnVerPosAdjSelector01.AutoSize = true;
            this.RbnVerPosAdjSelector01.Location = new System.Drawing.Point(12, 20);
            this.RbnVerPosAdjSelector01.Name = "RbnVerPosAdjSelector01";
            this.RbnVerPosAdjSelector01.Size = new System.Drawing.Size(41, 16);
            this.RbnVerPosAdjSelector01.TabIndex = 13;
            this.RbnVerPosAdjSelector01.TabStop = true;
            this.RbnVerPosAdjSelector01.Tag = "1";
            this.RbnVerPosAdjSelector01.Text = "CH1";
            this.RbnVerPosAdjSelector01.UseVisualStyleBackColor = true;
            //
            // RbnVerPosAdjSelector02
            //
            this.RbnVerPosAdjSelector02.AutoSize = true;
            this.RbnVerPosAdjSelector02.Location = new System.Drawing.Point(68, 20);
            this.RbnVerPosAdjSelector02.Name = "RbnVerPosAdjSelector02";
            this.RbnVerPosAdjSelector02.Size = new System.Drawing.Size(41, 16);
            this.RbnVerPosAdjSelector02.TabIndex = 13;
            this.RbnVerPosAdjSelector02.TabStop = true;
            this.RbnVerPosAdjSelector02.Tag = "2";
            this.RbnVerPosAdjSelector02.Text = "CH2";
            this.RbnVerPosAdjSelector02.UseVisualStyleBackColor = true;
            //
            // RbnVerPosAdjSelector03
            //
            this.RbnVerPosAdjSelector03.AutoSize = true;
            this.RbnVerPosAdjSelector03.Location = new System.Drawing.Point(124, 20);
            this.RbnVerPosAdjSelector03.Name = "RbnVerPosAdjSelector03";
            this.RbnVerPosAdjSelector03.Size = new System.Drawing.Size(41, 16);
            this.RbnVerPosAdjSelector03.TabIndex = 13;
            this.RbnVerPosAdjSelector03.TabStop = true;
            this.RbnVerPosAdjSelector03.Tag = "3";
            this.RbnVerPosAdjSelector03.Text = "CH3";
            this.RbnVerPosAdjSelector03.UseVisualStyleBackColor = true;
            //
            // RbnVerPosAdjSelector04
            //
            this.RbnVerPosAdjSelector04.AutoSize = true;
            this.RbnVerPosAdjSelector04.Location = new System.Drawing.Point(180, 20);
            this.RbnVerPosAdjSelector04.Name = "RbnVerPosAdjSelector04";
            this.RbnVerPosAdjSelector04.Size = new System.Drawing.Size(41, 16);
            this.RbnVerPosAdjSelector04.TabIndex = 13;
            this.RbnVerPosAdjSelector04.TabStop = true;
            this.RbnVerPosAdjSelector04.Tag = "4";
            this.RbnVerPosAdjSelector04.Text = "CH4";
            this.RbnVerPosAdjSelector04.UseVisualStyleBackColor = true;
            //
            // RbnVerPosAdjSelector05
            //
            this.RbnVerPosAdjSelector05.AutoSize = true;
            this.RbnVerPosAdjSelector05.Location = new System.Drawing.Point(12, 41);
            this.RbnVerPosAdjSelector05.Name = "RbnVerPosAdjSelector05";
            this.RbnVerPosAdjSelector05.Size = new System.Drawing.Size(41, 16);
            this.RbnVerPosAdjSelector05.TabIndex = 13;
            this.RbnVerPosAdjSelector05.TabStop = true;
            this.RbnVerPosAdjSelector05.Tag = "5";
            this.RbnVerPosAdjSelector05.Text = "CH5";
            this.RbnVerPosAdjSelector05.UseVisualStyleBackColor = true;
            //
            // RbnVerPosAdjSelector06
            //
            this.RbnVerPosAdjSelector06.AutoSize = true;
            this.RbnVerPosAdjSelector06.Location = new System.Drawing.Point(68, 41);
            this.RbnVerPosAdjSelector06.Name = "RbnVerPosAdjSelector06";
            this.RbnVerPosAdjSelector06.Size = new System.Drawing.Size(41, 16);
            this.RbnVerPosAdjSelector06.TabIndex = 13;
            this.RbnVerPosAdjSelector06.TabStop = true;
            this.RbnVerPosAdjSelector06.Tag = "6";
            this.RbnVerPosAdjSelector06.Text = "CH6";
            this.RbnVerPosAdjSelector06.UseVisualStyleBackColor = true;
            //
            // panel1
            //
            this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.panel1.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.panel1.Location = new System.Drawing.Point(456, 4);
            this.panel1.Margin = new System.Windows.Forms.Padding(4);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(578, 278);
            this.panel1.TabIndex = 15;
            //
            // btnTimeLocSet
            //
            this.btnTimeLocSet.Location = new System.Drawing.Point(132, 63);
            this.btnTimeLocSet.Margin = new System.Windows.Forms.Padding(4);
            this.btnTimeLocSet.Name = "btnTimeLocSet";
            this.btnTimeLocSet.Size = new System.Drawing.Size(61, 20);
            this.btnTimeLocSet.TabIndex = 14;
            this.btnTimeLocSet.Text = "移动至";
            this.btnTimeLocSet.UseVisualStyleBackColor = true;
            this.btnTimeLocSet.Visible = false;
            //
            // groupBox2
            //
            this.groupBox2.Controls.Add(this.label2);
            this.groupBox2.Controls.Add(this.groupBox1);
            this.groupBox2.Controls.Add(this.label1);
            this.groupBox2.Controls.Add(this.cbxCursorY);
            this.groupBox2.Controls.Add(this.cbxCursorX);
            this.groupBox2.Controls.Add(this.cbxCursors);
            this.groupBox2.Controls.Add(this.CbxVerticalMoveFreeze);
            this.groupBox2.Controls.Add(this.CbxHorizontalMoveFreeze);
            this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.groupBox2.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.groupBox2.Location = new System.Drawing.Point(4, 4);
            this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
            this.groupBox2.Size = new System.Drawing.Size(417, 18);
            this.groupBox2.TabIndex = 17;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "控制和测量选取";
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(11, 122);
            this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(33, 11);
            this.label2.TabIndex = 18;
            this.label2.Text = "Y移动";
            //
            // groupBox1
            //
            this.groupBox1.Controls.Add(this.LblTimeLengthPerCell);
            this.groupBox1.Controls.Add(this.btnTimeLocSet);
            this.groupBox1.Controls.Add(this.cbxTimeType);
            this.groupBox1.Controls.Add(this.TbrTimeLengthPerCell);
            this.groupBox1.Controls.Add(this.tbxWindowCenterTime);
            this.groupBox1.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.groupBox1.Location = new System.Drawing.Point(8, 14);
            this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
            this.groupBox1.Size = new System.Drawing.Size(224, 61);
            this.groupBox1.TabIndex = 16;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "时间控制";
            //
            // cbxTimeType
            //
            this.cbxTimeType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbxTimeType.FormattingEnabled = true;
            this.cbxTimeType.Location = new System.Drawing.Point(392, 32);
            this.cbxTimeType.Margin = new System.Windows.Forms.Padding(4);
            this.cbxTimeType.Name = "cbxTimeType";
            this.cbxTimeType.Size = new System.Drawing.Size(67, 19);
            this.cbxTimeType.TabIndex = 15;
            //
            // tbxWindowCenterTime
            //
            this.tbxWindowCenterTime.Location = new System.Drawing.Point(201, 62);
            this.tbxWindowCenterTime.Margin = new System.Windows.Forms.Padding(4);
            this.tbxWindowCenterTime.Name = "tbxWindowCenterTime";
            this.tbxWindowCenterTime.Size = new System.Drawing.Size(39, 20);
            this.tbxWindowCenterTime.TabIndex = 13;
            this.tbxWindowCenterTime.Visible = false;
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(116, 122);
            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(33, 11);
            this.label1.TabIndex = 18;
            this.label1.Text = "X移动";
            //
            // cbxCursorY
            //
            this.cbxCursorY.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbxCursorY.FormattingEnabled = true;
            this.cbxCursorY.Items.AddRange(new object[] { "None", "Y1", "Y2", "Y1/Y2" });
            this.cbxCursorY.Location = new System.Drawing.Point(53, 117);
            this.cbxCursorY.Margin = new System.Windows.Forms.Padding(4);
            this.cbxCursorY.Name = "cbxCursorY";
            this.cbxCursorY.Size = new System.Drawing.Size(52, 19);
            this.cbxCursorY.TabIndex = 17;
            //
            // cbxCursorX
            //
            this.cbxCursorX.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbxCursorX.FormattingEnabled = true;
            this.cbxCursorX.Items.AddRange(new object[] { "None", "X1", "X2", "X1/X2" });
            this.cbxCursorX.Location = new System.Drawing.Point(155, 117);
            this.cbxCursorX.Margin = new System.Windows.Forms.Padding(4);
            this.cbxCursorX.Name = "cbxCursorX";
            this.cbxCursorX.Size = new System.Drawing.Size(52, 19);
            this.cbxCursorX.TabIndex = 17;
            //
            // cbxCursors
            //
            this.cbxCursors.AutoSize = true;
            this.cbxCursors.Location = new System.Drawing.Point(15, 98);
            this.cbxCursors.Margin = new System.Windows.Forms.Padding(4);
            this.cbxCursors.Name = "cbxCursors";
            this.cbxCursors.Size = new System.Drawing.Size(88, 15);
            this.cbxCursors.TabIndex = 16;
            this.cbxCursors.Text = "Cursors使能";
            this.cbxCursors.UseVisualStyleBackColor = true;
            //
            // CbxVerticalMoveFreeze
            //
            this.CbxVerticalMoveFreeze.AutoSize = true;
            this.CbxVerticalMoveFreeze.Location = new System.Drawing.Point(116, 79);
            this.CbxVerticalMoveFreeze.Margin = new System.Windows.Forms.Padding(4);
            this.CbxVerticalMoveFreeze.Name = "CbxVerticalMoveFreeze";
            this.CbxVerticalMoveFreeze.Size = new System.Drawing.Size(90, 15);
            this.CbxVerticalMoveFreeze.TabIndex = 15;
            this.CbxVerticalMoveFreeze.Text = "纵向移动锁定";
            this.CbxVerticalMoveFreeze.UseVisualStyleBackColor = true;
            //
            // CbxHorizontalMoveFreeze
            //
            this.CbxHorizontalMoveFreeze.AutoSize = true;
            this.CbxHorizontalMoveFreeze.Location = new System.Drawing.Point(15, 79);
            this.CbxHorizontalMoveFreeze.Margin = new System.Windows.Forms.Padding(4);
            this.CbxHorizontalMoveFreeze.Name = "CbxHorizontalMoveFreeze";
            this.CbxHorizontalMoveFreeze.Size = new System.Drawing.Size(90, 15);
            this.CbxHorizontalMoveFreeze.TabIndex = 14;
            this.CbxHorizontalMoveFreeze.Text = "横向移动锁定";
            this.CbxHorizontalMoveFreeze.UseVisualStyleBackColor = true;
            //
            // splitContainer1
            //
            this.splitContainer1.CollapsePanel = Sunny.UI.UISplitContainer.UICollapsePanel.Panel2;
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Margin = new System.Windows.Forms.Padding(4);
            this.splitContainer1.MinimumSize = new System.Drawing.Size(20, 20);
            this.splitContainer1.Name = "splitContainer1";
            //
            // splitContainer1.Panel1
            //
            this.splitContainer1.Panel1.Controls.Add(this.panel3);
            this.splitContainer1.Panel1.Controls.Add(this.oscilloscopeScreen);
            this.splitContainer1.Panel1.Controls.Add(this.panel_Comsetting);
            //
            // splitContainer1.Panel2
            //
            this.splitContainer1.Panel2.Controls.Add(this.tableLayoutPanel2);
            this.splitContainer1.Panel2.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.splitContainer1.Size = new System.Drawing.Size(1033, 554);
            this.splitContainer1.SplitterDistance = 591;
            this.splitContainer1.SplitterWidth = 5;
            this.splitContainer1.TabIndex = 16;
            this.splitContainer1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
            //
            // panel3
            //
            this.panel3.BackColor = System.Drawing.Color.Black;
            this.panel3.Controls.Add(this.tableLayoutPanel1);
            this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel3.Location = new System.Drawing.Point(0, 494);
            this.panel3.Name = "panel3";
            this.panel3.Size = new System.Drawing.Size(591, 60);
            this.panel3.TabIndex = 19;
            //
            // tableLayoutPanel1
            //
            this.tableLayoutPanel1.ColumnCount = 4;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tableLayoutPanel1.Controls.Add(this.label6, 3, 0);
            this.tableLayoutPanel1.Controls.Add(this.label3, 0, 0);
            this.tableLayoutPanel1.Controls.Add(this.label4, 1, 0);
            this.tableLayoutPanel1.Controls.Add(this.label5, 2, 0);
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 1;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel1.Size = new System.Drawing.Size(591, 60);
            this.tableLayoutPanel1.TabIndex = 3;
            //
            // label6
            //
            this.label6.AutoSize = true;
            this.label6.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label6.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
            this.label6.Location = new System.Drawing.Point(444, 0);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(29, 16);
            this.label6.TabIndex = 3;
            this.label6.Text = "CH4";
            //
            // label3
            //
            this.label3.AutoSize = true;
            this.label3.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label3.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
            this.label3.Location = new System.Drawing.Point(3, 0);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(29, 16);
            this.label3.TabIndex = 0;
            this.label3.Text = "CH1";
            //
            // label4
            //
            this.label4.AutoSize = true;
            this.label4.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label4.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
            this.label4.Location = new System.Drawing.Point(150, 0);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(29, 16);
            this.label4.TabIndex = 1;
            this.label4.Text = "CH2";
            //
            // label5
            //
            this.label5.AutoSize = true;
            this.label5.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label5.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
            this.label5.Location = new System.Drawing.Point(297, 0);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(29, 16);
            this.label5.TabIndex = 2;
            this.label5.Text = "CH3";
            //
            // oscilloscopeScreen
            //
            this.oscilloscopeScreen.AllowDrop = true;
            this.oscilloscopeScreen.BackColor = System.Drawing.Color.Black;
            this.oscilloscopeScreen.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.oscilloscopeScreen.Dock = System.Windows.Forms.DockStyle.Fill;
            this.oscilloscopeScreen.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.oscilloscopeScreen.Location = new System.Drawing.Point(0, 0);
            this.oscilloscopeScreen.Margin = new System.Windows.Forms.Padding(0);
            this.oscilloscopeScreen.Name = "oscilloscopeScreen";
            this.oscilloscopeScreen.Size = new System.Drawing.Size(591, 554);
            this.oscilloscopeScreen.TabIndex = 14;
            //
            // panel_Comsetting
            //
            this.panel_Comsetting.Location = new System.Drawing.Point(295, 508);
            this.panel_Comsetting.Margin = new System.Windows.Forms.Padding(4);
            this.panel_Comsetting.Name = "panel_Comsetting";
            this.panel_Comsetting.Size = new System.Drawing.Size(621, 172);
            this.panel_Comsetting.TabIndex = 18;
            //
            // tableLayoutPanel2
            //
            this.tableLayoutPanel2.ColumnCount = 1;
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 130));
            this.tableLayoutPanel2.Controls.Add(this.groupBox_parameterSetting, 0, 0);
            this.tableLayoutPanel2.Controls.Add(this.groupBox5, 0, 1);
            this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel2.Name = "tableLayoutPanel2";
            this.tableLayoutPanel2.RowCount = 2;
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 65F));
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel2.Size = new System.Drawing.Size(437, 554);
            this.tableLayoutPanel2.TabIndex = 24;
            //
            // groupBox_parameterSetting
            //
            this.groupBox_parameterSetting.Controls.Add(this.tableLayoutPanel3);
            this.groupBox_parameterSetting.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.groupBox_parameterSetting.Location = new System.Drawing.Point(3, 3);
            this.groupBox_parameterSetting.Name = "groupBox_parameterSetting";
            this.groupBox_parameterSetting.Size = new System.Drawing.Size(431, 45);
            this.groupBox_parameterSetting.TabIndex = 21;
            this.groupBox_parameterSetting.TabStop = false;
            this.groupBox_parameterSetting.Text = "参数设置";
            //
            // tableLayoutPanel3
            //
            this.tableLayoutPanel3.ColumnCount = 1;
            this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 90.16019F));
            this.tableLayoutPanel3.Controls.Add(this.groupBox2, 0, 0);
            this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 16);
            this.tableLayoutPanel3.Name = "tableLayoutPanel3";
            this.tableLayoutPanel3.RowCount = 1;
            this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel3.Size = new System.Drawing.Size(425, 26);
            this.tableLayoutPanel3.TabIndex = 19;
            //
            // groupBox5
            //
            this.groupBox5.Controls.Add(this.flowLayoutPanel_ParamterAddSetting);
            this.groupBox5.Dock = System.Windows.Forms.DockStyle.Fill;
            this.groupBox5.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.groupBox5.Location = new System.Drawing.Point(3, 54);
            this.groupBox5.Name = "groupBox5";
            this.groupBox5.Size = new System.Drawing.Size(431, 497);
            this.groupBox5.TabIndex = 0;
            this.groupBox5.TabStop = false;
            this.groupBox5.Text = " ";
            //
            // flowLayoutPanel_ParamterAddSetting
            //
            this.flowLayoutPanel_ParamterAddSetting.AllowDrop = true;
            this.flowLayoutPanel_ParamterAddSetting.Dock = System.Windows.Forms.DockStyle.Fill;
            this.flowLayoutPanel_ParamterAddSetting.Location = new System.Drawing.Point(3, 16);
            this.flowLayoutPanel_ParamterAddSetting.Name = "flowLayoutPanel_ParamterAddSetting";
            this.flowLayoutPanel_ParamterAddSetting.Size = new System.Drawing.Size(425, 478);
            this.flowLayoutPanel_ParamterAddSetting.TabIndex = 0;
            //
            // groupBox4
            //
            this.groupBox4.Location = new System.Drawing.Point(0, 0);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(200, 100);
            this.groupBox4.TabIndex = 0;
            this.groupBox4.TabStop = false;
            //
            // userControlWriter
            //
            this.userControlWriter.ActionShow = null;
            this.userControlWriter.Dock = System.Windows.Forms.DockStyle.Fill;
            this.userControlWriter.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.userControlWriter.Location = new System.Drawing.Point(4, 263);
            this.userControlWriter.Margin = new System.Windows.Forms.Padding(4);
            this.userControlWriter.Name = "userControlWriter";
            this.userControlWriter.Size = new System.Drawing.Size(613, 1);
            this.userControlWriter.TabIndex = 19;
            //
            // OscilloscopeControl
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 11F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.splitContainer1);
            this.Controls.Add(this.panel1);
            this.Font = new System.Drawing.Font("宋体", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.Margin = new System.Windows.Forms.Padding(4);
            this.Name = "OscilloscopeControl";
            this.Size = new System.Drawing.Size(1033, 554);
            ((System.ComponentModel.ISupportInitialize)(this.TbrTimeLengthPerCell)).EndInit();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
            this.splitContainer1.ResumeLayout(false);
            this.panel3.ResumeLayout(false);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel1.PerformLayout();
            this.tableLayoutPanel2.ResumeLayout(false);
            this.groupBox_parameterSetting.ResumeLayout(false);
            this.tableLayoutPanel3.ResumeLayout(false);
            this.groupBox5.ResumeLayout(false);
            this.ResumeLayout(false);
        }

        // Token: 0x04000058 RID: 88
        private static int CHANNEL_COUNT = Program.CountChannel;

        // Token: 0x04000059 RID: 89
        private int timeLengthPerCellGrade;

        // Token: 0x0400005A RID: 90
        private bool[] channelSelectedMap = new bool[OscilloscopeControl.CHANNEL_COUNT];

        // Token: 0x0400005B RID: 91
        private int verPosAdjustChannelSN;

        // Token: 0x0400005C RID: 92
        private Dictionary<int, IChannelBuffer> managedChannelbuffer = new Dictionary<int, IChannelBuffer>();

        // Token: 0x0400005D RID: 93
        private IContainer components;

        // Token: 0x0400005F RID: 95
        private Label LblTimeLengthPerCell;

        // Token: 0x04000060 RID: 96
        private TrackBar TbrTimeLengthPerCell;

        // Token: 0x04000061 RID: 97
        private CheckBox CbxChSelector01;

        // Token: 0x04000062 RID: 98
        private CheckBox CbxChSelector02;

        // Token: 0x04000063 RID: 99
        private CheckBox CbxChSelector03;

        // Token: 0x04000064 RID: 100
        private CheckBox CbxChSelector04;

        // Token: 0x04000065 RID: 101
        private RadioButton RbnVerPosAdjSelector01;

        // Token: 0x04000066 RID: 102
        private RadioButton RbnVerPosAdjSelector02;

        // Token: 0x04000067 RID: 103
        private RadioButton RbnVerPosAdjSelector03;

        // Token: 0x04000068 RID: 104
        private RadioButton RbnVerPosAdjSelector04;

        // Token: 0x04000069 RID: 105
        private OscilloscopeScreen oscilloscopeScreen;

        // Token: 0x0400006A RID: 106
        private Panel panel1;

        // Token: 0x0400006B RID: 107
        private UISplitContainer UISplitContainer;

        // Token: 0x0400006C RID: 108
        private GroupBox groupBox2;

        // Token: 0x0400006D RID: 109
        private Button btnTimeLocSet;

        // Token: 0x0400006E RID: 110
        private TextBox tbxWindowCenterTime;

        // Token: 0x04000070 RID: 112
        private CheckBox CbxVerticalMoveFreeze;

        // Token: 0x04000071 RID: 113
        private CheckBox CbxHorizontalMoveFreeze;

        // Token: 0x04000072 RID: 114
        private CheckBox CbxChSelector05;

        // Token: 0x04000073 RID: 115
        private CheckBox CbxChSelector06;

        // Token: 0x04000074 RID: 116
        private RadioButton RbnVerPosAdjSelector05;

        // Token: 0x04000075 RID: 117
        private RadioButton RbnVerPosAdjSelector06;

        // Token: 0x04000076 RID: 118
        private CheckBox cbxCursors;

        // Token: 0x04000077 RID: 119
        private Label label1;

        // Token: 0x04000078 RID: 120
        private ComboBox cbxCursorX;

        // Token: 0x04000079 RID: 121
        private Label label2;

        // Token: 0x0400007A RID: 122
        private ComboBox cbxCursorY;

        // Token: 0x02000007 RID: 7
        private enum ENUM_002
        {
            // Token: 0x0400007C RID: 124
            us,

            // Token: 0x0400007D RID: 125
            ms,

            // Token: 0x0400007E RID: 126
            s,
        }
    }
}
